<%@ page import="javax.servlet.http.Cookie" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%

response.setHeader("Cache-Control","no-cache"); // HTTP  1.1
response.setHeader("Pragma","no-cache"); // HTTP 1.0
response.setDateHeader ("Expires", -1); // Prevents caching at the proxy server
response.addHeader("Refresh", "600; URL=/logout.do");



    String invalidErrMsg = (String)request.getAttribute("invalidMsg");
	String contextPath=(String)(request.getContextPath());

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i-Pariskha Online Examination System</title>
<link href="css/styleNew.css" rel="stylesheet" type="text/css" />
<script>
function handleLoginBtn() {
	if( document.forms[0].j_username.value == "" ) {
		alert("User name blank");
		document.forms[0].j_username.focus();
		return false ;
	}

	if( document.forms[0].j_password.value == "" ) {
		alert("Password blank");
		document.forms[0].j_password.focus();
		return false ;
	} 
	document.forms[0].submit();
}

function showArrow(curobj)
{
	curobj.style.cursor = "hand";
}
</script>

</head>


<body onLoad="document.forms[0].j_username.focus();">
 <form name="login" action="j_security_check" method="POST"  >
<table class="loginbg" align="center" border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td height="230" rowspan="3">&nbsp;</td>
    <td height="100" colspan="2">&nbsp;</td>
    <td rowspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><table width="354" border="0" cellspacing="0" cellpadding="0">
      
	  <%if(invalidErrMsg != null) {%>
      <tr>
        <td colspan="3" class="login"><%=invalidErrMsg%></td>        
      </tr>
      <%} else{%>
       <tr>
        <td colspan="3">&nbsp;</td>        
      </tr>
      <%}%>
      <tr>
        <td class="loginformText">User </td>
        <td><input name="j_username" type="text" class="loginform1" maxlength="20" onKeyPress="if(event.keyCode==13) return handleLoginBtn();"  tabindex="1"></td>
        <td>&nbsp;</td>
      </tr>
	  <tr >
        <td height="2"></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td class="loginformText">Password</td>
        <td><input name="j_password" type="password" class="loginform1" maxlength="20" onKeyPress="if(event.keyCode==13) return handleLoginBtn();" tabindex="2"></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td >&nbsp;</td>
        <td><input type="button" name="button" id="button" class="imageButton1" value="Submit" onmouseover="showArrow(this);" onclick="return handleLoginBtn();" onKeyPress="if(event.keyCode==13) return handleLoginBtn();"/></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td width="372" rowspan="2"><table width="372" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="27" background="images/loginstrip.gif"><div align="center"><span class="style13">Skill Evaluation System</span></div></td>
      </tr>
    </table></td>
    <td colspan="2" width="354"><div align="center">
      <table width="354" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td background="images/a1.gif" width="32">&nbsp;</td>
            <td background="images/a2repeat.gif" class="style14"><div align="left">Announcement</div></td>
            <td width="32" height="36" background="images/a3.gif">&nbsp;</td>
          </tr>
          <tr>
            <td background="images/a4.gif">&nbsp;</td>
            <td width="290"  bgcolor="#BDBCCB"><label>
				<div class="loginTextArea" style="height:sizepx;"> 
			  Welcome <b>User !</b><br> <br>
              iPariksha is a unique Skill Evaluation System designed for automating the Recruitment, Survey or Training Fullfillment process.
              For any information please contact us at ipariksha@gmail.com
              <br><br>
              Regards,
			   <br>
              iPariksha Team
			  </div>

            </label></td>
            <td height="170" background="images/a6.gif">&nbsp;</td>
          </tr>
          <tr>
            <td background="images/a7.gif">&nbsp;</td>
            <td background="images/a8repeat.gif">&nbsp;</td>
            <td width="32" height="32" background="images/a9.gif">&nbsp;</td>
          </tr>
          </table>
    </div></td>
    <td width="244" rowspan="2"><table width="244" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="27" background="images/loginstrip.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

</form>
</body>
</html>
